home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / LANG / C / GCC / CLIB / !clib / h / endian < prev    next >
Text File  |  1997-03-22  |  829b  |  29 lines

  1. /* endian.h.
  2.    An extension, not part of the original SharedCLibrary distribution.
  3.  
  4.    (c) Copyright 1997, Nick Burrett.  */
  5.  
  6. #ifndef    __ENDIAN_H
  7. #define    __ENDIAN_H    1
  8.  
  9. /* Definitions for byte order, according to significance of bytes, from low
  10.    addresses to high addresses.  The value is what you get by putting '4'
  11.    in the most significant byte, '3' in the second most significant byte,
  12.    '2' in the second least significant byte, and '1' in the least
  13.    significant byte.  */
  14.  
  15. #define    __LITTLE_ENDIAN    1234
  16. #define    __BIG_ENDIAN    4321
  17. #define    __PDP_ENDIAN    3412
  18.  
  19. /* Byte order for RISC OS is little endian.  */
  20. #define __BYTE_ORDER __LITTLE_ENDIAN
  21.  
  22. /* For compatibility with BSD.  */
  23. #define    LITTLE_ENDIAN    __LITTLE_ENDIAN
  24. #define    BIG_ENDIAN    __BIG_ENDIAN
  25. #define    PDP_ENDIAN    __PDP_ENDIAN
  26. #define    BYTE_ORDER    __BYTE_ORDER
  27.  
  28. #endif
  29.